
/***** CODE GENERATION START V090: Do not modify the following code **********/

#include "ConnMgrStateEvt.h"

#ifndef GRAPH
  #define GRAPH(n) enum n##_states {
  #define STATE(s,p,a) s,
  #define STATE_END
  #define STATE_ONLY(s,p,a) s,
  #define TRANS(e,n,a)
  #define GRAPH_END(n) n##_TotalStates};
#endif /* !GRAPH */

GRAPH (Higraph_RmtCfg)

/*----- State  0 ------------------------------------------------------------*/

STATE      (SetConfiguration,               HG_TREE_ROOT,                   nullAction                      )
TRANS      (EXIT,                           INTERNAL,                       nullAction           )
TRANS      (EV (EVT,RMTCFG_RcvPendingMsg),  HandlePendingMsg,               null_action                     )
STATE_END

/*----- State  1 ------------------------------------------------------------*/

STATE      (SetActive,                      SetConfiguration,               nullAction                      )
TRANS      (EXIT,                           INTERNAL,                       nullAction            )
TRANS      (EV (EVT,RMTCFG_RcvPendingMsg),  INTERNAL,                       CheckNewPendMsg                 )
TRANS      (EV (EVT,CONNMGR_CONN_STATE),    INTERNAL,                       CheckConnState                  )
TRANS      (EV (EVT,RMTCFG_SetCfgTimeOut),  SetConfiguration,               OnSetCfgTimeOut                 )
STATE_END

/*----- State  2 ------------------------------------------------------------*/

STATE      (HandlePendingMsg,               SetActive,                      HandlePendingMsg                )
TRANS      (EXIT,                           INTERNAL,                       nullAction            )
TRANS      (EV (EVT,RMTCFG_ConnAvailable),  SendConMsg,                     null_action                     )
TRANS      (EV (EVT,RMTCFG_RcvNewPendingMsg), HandlePendingMsg,               onReceiveNewPendMsg             )
STATE_END

/*----- State  3 ------------------------------------------------------------*/

STATE      (SendConMsg,                     SetActive,                      SendConMsg                      )
TRANS      (EXIT,                           INTERNAL,                       nullAction            )
TRANS      (EV (EVT,RMTCFG_RcvSetCfgMsg),   HandleSetConfigMsg,             null_action                     )
TRANS      (EV (EVT,RMTCFG_RcvNewPendingMsg), HandlePendingMsg,               onReceiveNewPendMsg             )
STATE_END

/*----- State  4 ------------------------------------------------------------*/

STATE      (HandleSetConfigMsg,             SetActive,                      HandleSetConfigMsg              )
TRANS      (EXIT,                           INTERNAL,                       nullAction            )
TRANS      (EV (EVT,RMTCFG_ConnAvailable),  SendAckMsg,                     null_action                     )
TRANS      (EV (EVT,RMTCFG_RcvNewPendingMsg), HandlePendingMsg,               onReceiveNewPendMsg             )
STATE_END

/*----- State  5 ------------------------------------------------------------*/

STATE      (SendAckMsg,                     SetActive,                      SendAckMsg                      )
TRANS      (EXIT,                           INTERNAL,                       nullAction            )
TRANS      (EV (EVT,RMTCFG_RcvNewPendingMsg), HandlePendingMsg,               onReceiveNewPendMsg             )
TRANS      (EV (EVT,RMTCFG_RcvHttpOKResp),  SetConfiguration,               null_action                     )
STATE_END


GRAPH_END (Higraph_RmtCfg)

/***** CODE GENERATION END ***************************************************/
